package com.item.client;

import com.item.client.impl.CityClientImpl;
import com.item.pojo.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(name = "vehicle-gateway", path = "/order", fallback = CityClientImpl.class)
public interface CityClient {

    @PostMapping("/findCity")
    public List<City> findCity();
}
